import request from '@/utils/request'

export function addInsurance(data) {
  return request({
    url: '/juanbusiness/insurance-activation/add',
    method: 'post',
    data
  })
}

export function findInsurance(page, size, insuredName, insuredPhone) {
  return request({
    url: '/juanbusiness/insurance-activation/findPage',
    method: 'get',
    params: { page: page, size: size, insuredName: insuredName, insuredPhone: insuredPhone }
  })
}

export function getInsurance(data) {
  return request({
    url: '/juanbusiness/insurance-activation/get',
    method: 'get',
    data
  })
}

export function delInsurance(id) {
  return request({
    url: '/juanbusiness/insurance-activation/del',
    method: 'delete',
    params: {id: id}
  })
}
